package com.xhh.reapply.controller.v1;

import com.xhh.model.common.dtos.ResponseResult;
import com.xhh.model.reapply.dtos.FiltrateStudentDto;
import com.xhh.model.reapply.dtos.GetRuleDto;
import com.xhh.reapply.service.IRuleService;
import com.xhh.reapply.service.IScoreService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

@Api(tags = "调剂规则管理接口")
@RestController
@RequestMapping("/reapply/rule")
@RequiredArgsConstructor
public class RuleController {

    private final IRuleService ruleService;

    @ApiOperation("根据单位编码、院系编码、专业编码获取调剂规则")
    @GetMapping
    public ResponseResult getRuleByUidFidAndMid(@SpringQueryMap GetRuleDto dto){
        return ruleService.getRuleByUCodeFCodeAndCode(dto);
    }


}
